package com.example.demo.mapper;

import com.example.demo.entity.VideoInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 第五小组
 * @since 2021-08-04
 */
public interface VideoInfoMapper extends BaseMapper<VideoInfo> {

    //关联查询直接返回全部结果
    @Select("select * from video_info as a join video_tag as b on a.BV_bid=b.BV_bid")
    public List<Map<String,Object>> findByBV(String BV);
}
